﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;
using JiveMessenger.ViewModels;

namespace JiveMessenger.CustomControls
{
    public partial class GroupChatControl : UserControl
    {
        public GroupChatControl()
        {
            InitializeComponent();
        }

        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            if (this.EmoticonPopup.IsOpen == false)
                this.EmoticonPopup.IsOpen = true;
            if (EmoticonControl.NeedRefresh)
            {
                ViewModelGroupChat vmmp = (ViewModelGroupChat)this.DataContext;
                vmmp.CreateCustomEmoticons();
                //vmmp.CustomEmoticons = vmmp.CreateCustomEmoticonList();
                EmoticonControl.NeedRefresh = false;
            }
        }
    }
}
